package com.edu.zut.security;

import com.edu.zut.domain.MenuVo;
import com.edu.zut.mapper.MenuMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @Author 许文科
 * @Date 2023/1/15 14:37
 * @Description paperdetect-bcak
 */
@SpringBootTest
public class Menu {

    @Autowired
    private MenuMapper menuMapper;


    @Test
    public void show1() {//测试根据parent id获取菜单列表
        List<MenuVo> menuVos = menuMapper.selectMenusByParentId(0L);
        System.out.println(menuVos.size());
    }
}
